package com.study.base;

/**
 * Description:
 * User: tan
 * DateTime: 2017/10/7 13:29
 */
public class NewObjectTest implements Runnable {
    private String str;
    @Deprecated
    private int num;
    private Integer num1;
    private final int x = 200;

    public static void main(String[] args) {
        int a = 10;
        //Integer g = a;
        Integer b = 127;
        Integer f = 127;
        Integer d = 128;
        Integer h = 128;
        Integer e = 4324542;
        Integer i = Integer.valueOf(333);
        Integer c = new Integer(2440);

        String str1 = "abc";
        String str2 = new String("bcd");

        Object object = new Object();

        Integer.valueOf(100);
        Double.valueOf(100);
        Boolean.valueOf(true);

        System.out.println(b == f);
        System.out.println(d == h);

        NewObjectTest test = new NewObjectTest();
        int sum = test.test(1,2,"ff");
    }

    @Override
    public void run() {

    }

    public Integer test(int a, Integer b, String str) {
        int c = a + b;
        return c;
    }
}
